package com.yanqu.road.logic.bussiness.statistics;

import com.yanqu.road.entity.statistics.AbilityStatistics;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class StatisticsBusiness {

    /**
     * 获取指定时间的统计数据
     *
     * @param startTime 有包括该时间
     */
    public static Map<Long, AbilityStatistics> getAbilityStatisticsMap(long serverId, long startTime) {
        return DaoHelper.getAbilityStatisticsDaoImpl().getAbilityStatisticsMap(serverId, startTime);
    }

    public static boolean addAbilityStatistics(AbilityStatistics data) {
        return DaoHelper.getAbilityStatisticsDaoImpl().add(data);
    }

    public static boolean updateAbilityStatistics(AbilityStatistics data) {
        return DaoHelper.getAbilityStatisticsDaoImpl().update(data);
    }

}
